Ad Widget

Collapse

Can`t build 1.1beta8 on freebsd4.11

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agk
    Junior Member
    • Apr 2006
    • 1

    #1

    Can`t build 1.1beta8 on freebsd4.11

    Can`t build 1.1beta8

    [root@bb:/usr/local/tmp/zabbix-1.1beta8]# ./configure --enable-server --with-mysql=/opt/mysql --with-net-snmp

    [root@bb:/usr/local/tmp/zabbix-1.1beta8]# make
    [....skipped...]
    Making all in trapper
    source='active.c' object='active.o' libtool=no DEPDIR=.deps depmode=gcc /bin/bash ../../../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I/opt/mysql/include/mysql -g -O2 -c active.c
    source='autoregister.c' object='autoregister.o' libtool=no DEPDIR=.deps depmode=gcc /bin/bash ../../../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I/opt/mysql/include/mysql -g -O2 -c autoregister.c
    source='trapper.c' object='trapper.o' libtool=no DEPDIR=.deps depmode=gcc /bin/bash ../../../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I/opt/mysql/include/mysql -g -O2 -c trapper.c
    rm -f libzbxtrapper.a
    ar cru libzbxtrapper.a active.o autoregister.o trapper.o ../../libs/zbxdbhigh/libzbxdbhigh.a
    ranlib libzbxtrapper.a
    source='evalfunc.c' object='evalfunc.o' libtool=no DEPDIR=.deps depmode=gcc /bin/bash ../../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I/opt/mysql/include/mysql -I/usr/local/include -g -O2 -c evalfunc.c
    source='expression.c' object='expression.o' libtool=no DEPDIR=.deps depmode=gcc /bin/bash ../../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I/opt/mysql/include/mysql -I/usr/local/include -g -O2 -c expression.c
    source='actions.c' object='actions.o' libtool=no DEPDIR=.deps depmode=gcc /bin/bash ../../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I/opt/mysql/include/mysql -I/usr/local/include -g -O2 -c actions.c
    actions.c: In function `run_commands':
    actions.c:541: syntax error before `*'
    actions.c:550: `cmd_list' undeclared (first use in this function)
    actions.c:550: (Each undeclared identifier is reported only once
    actions.c:550: for each function it appears in.)
    actions.c:552: `alias' undeclared (first use in this function)
    actions.c:552: `is_group' undeclared (first use in this function)
    actions.c:552: `command' undeclared (first use in this function)
    actions.c:558: `sql' undeclared (first use in this function)
    actions.c:559: `result' undeclared (first use in this function)
    actions.c:560: `i' undeclared (first use in this function)
    *** Error code 1

    Stop in /usr/local/tmp/zabbix-1.1beta8/src/zabbix_server.
    *** Error code 1

    Stop in /usr/local/tmp/zabbix-1.1beta8/src/zabbix_server.
    *** Error code 1

    Stop in /usr/local/tmp/zabbix-1.1beta8/src.
    *** Error code 1

    Stop in /usr/local/tmp/zabbix-1.1beta8.


    FreeBSD 4.11-RELEASE

    would provide any output needed..
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Fixed in CVS. Remove two "assert(...)" in run_commands to make it work. Also you may want to replace atoll() by atol(), FreeBSD 4.x doesn't have atoll() in stdlib.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    Working...